#include "vld.h"
#include <windows.h>
#include "core.h"
#include "battlecity_game.h"

int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nShowCmd)
{
	try
	{
		core::get_inst().run("battlecity.xml",new battlecity_game());
	}
	catch(char *msg)
	{
		MessageBox(GetActiveWindow(),msg,"nEngine exception", MB_OK|MB_ICONERROR);
	}
	delete core::get_ptr();
	return 0;
}